package com.newstart.jwt.project.model.dto;

import lombok.Data;

import javax.validation.constraints.NotBlank;
import javax.validation.constraints.Size;

@Data
public class LoginDTO {

    @NotBlank(message = "用户名不能为空")
    @Size(min = 1, max = 15, message = "登录用户名长度在1-15")
    private String username;

    @NotBlank(message = "密码不能为空")
    @Size(min = 1, max = 20, message = "登录密码长度在1-20")
    private String password;

    private Boolean rememberMe;//自动登录
}
